package com.hl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 会员积分历史对象 member_points_history
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
public class MemberPointsHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录唯一标识 */
    private Integer id;

    /** 会员名称 */
    @Excel(name = "会员名称")
    private String memberName;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String operationContent;

    /** 之前积分 */
    @Excel(name = "之前积分")
    private Integer previousPoints;

    /** 变动积分 */
    @Excel(name = "变动积分")
    private Integer changePoints;

    /** 当前积分 */
    @Excel(name = "当前积分")
    private Integer currentPoints;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setMemberName(String memberName) 
    {
        this.memberName = memberName;
    }

    public String getMemberName() 
    {
        return memberName;
    }

    public void setOperationContent(String operationContent) 
    {
        this.operationContent = operationContent;
    }

    public String getOperationContent() 
    {
        return operationContent;
    }

    public void setPreviousPoints(Integer previousPoints) 
    {
        this.previousPoints = previousPoints;
    }

    public Integer getPreviousPoints() 
    {
        return previousPoints;
    }

    public void setChangePoints(Integer changePoints) 
    {
        this.changePoints = changePoints;
    }

    public Integer getChangePoints() 
    {
        return changePoints;
    }

    public void setCurrentPoints(Integer currentPoints) 
    {
        this.currentPoints = currentPoints;
    }

    public Integer getCurrentPoints() 
    {
        return currentPoints;
    }

    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberName", getMemberName())
            .append("operationContent", getOperationContent())
            .append("previousPoints", getPreviousPoints())
            .append("changePoints", getChangePoints())
            .append("currentPoints", getCurrentPoints())
            .append("operationTime", getOperationTime())
            .toString();
    }
}
